package com.netease.xone.dataMgr;

import android.os.Parcel;
import android.os.Parcelable;



public class ParcelableArgument implements Parcelable {
    // 默认讨论
    public static final int TYPE_DEFAULT = 0;
    // 转发
    public static final int TYPE_FORWARD = 1;
    // 评论
    public static final int TYPE_COMMENT = 2;
    
    
    private int mType = -1;
    // 资讯id
    public String mInfoId = null;

    public static final Creator<ParcelableArgument> CREATOR =
            new Creator<ParcelableArgument>() {
        @Override
        public ParcelableArgument createFromParcel(Parcel in) {
            return new ParcelableArgument(in);
        }

        @Override
        public ParcelableArgument[] newArray(int size) {
            return new ParcelableArgument[size];
        }
    };
    
    public ParcelableArgument(int value) {
        this.mType = value;
    }
    
    public ParcelableArgument(Parcel source) {
        mType = source.readInt();
        mInfoId = source.readString();
    }
    
    public int getType() {
        return this.mType;
    }
    
    public void setType(int value) {
        this.mType = value;
    }
    
    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(mType);
        dest.writeString(mInfoId);
    }
    
}
